﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;
namespace HFWebApp
{
    public partial class search : BagePages
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string typeid = this.GetAll("typeid");
                string wordkey = this.GetAll("wordkey");
                string url = "";
                switch (typeid)
                { 
                    case "1": //咨询
                        url = this.getDemain + "/news/NewsList.aspx?keyword=" + wordkey;
                        break;
                    case "2": //律师
                        url = this.getDemain + "/lawyeruser/lawyerlist.aspx?keyword=" + wordkey;
                        break;
                    case "3"://法规
                        url = this.getDemain + "/legislation/LegislationList.aspx?searchtype=0&keyword=" + wordkey;
                        break;
                    case "4"://合同
                        url = this.getDemain + "/source/SourceList.aspx?sourceid=3&keyword=" + wordkey;
                        break;
                    case "5"://案例
                        url = this.getDemain + "/source/SourceList.aspx?sourceid=4&keyword=" + wordkey;
                        break;
                }
                Response.Redirect(url);
            }
        }
    }
}